<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/WEB-INF/includes/tags.jsp" %>
<div class="center_text">
    <table width="100%">
        <colgroup>
            <col/>
            <col/>
            <col width="120"/>
            <col width="120"/>
            <col width="40"/>
            <col width="40"/>
        </colgroup>
        <thead>
        <th><s:text name="name"/></th>
        <th>
            <s:text name="title"/>
        </th>
        <th>
            <s:text name="create"/>
        </th>
        <th>
            <s:text name="update"/>
        </th>
        <th>

        </th>
        <th>

        </th>
        </thead>
        <tbody>
        <s:iterator value="allNews" var="n">
        <tr>
            <td>
                <s:property value="name"/>
            </td>
            <td>
                <s:property value="title"/>
            </td>
            <td>
                <fmt:formatDate value="${create}" pattern="dd.MM.yyyy HH:mm:ss" var="cr"/>
                    ${cr}
            </td>
            <td>
                <fmt:formatDate value="${update}" pattern="dd.MM.yyyy HH:mm:ss" var="up"/>
                    ${up}
            </td>
            <td>
                <s:url action="modify" namespace="/news" var="modifyNewsAction">
                    <s:param name="news.id" value="id"/>
                </s:url>
                <a href="${modifyNewsAction}"><s:text name="ui.modify"/></a>
            </td>
            <td>
                <s:url action="delete" namespace="/news" var="deleteNewsAction">
                    <s:param name="news.id" value="id"/>
                </s:url>
                <a href="${deleteNewsAction}"><s:text name="ui.delete"/></a>
            </td>
        <tr>
            </s:iterator>
        </tbody>
    </table>
</div>